package com.xxzuibang.day4;

import java.util.Scanner;

public class Demo3 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        while (true) {
        System.out.println("请输入你的芝麻信用分：");

            int  score=sc.nextInt();
            if(score>=1&&score<=100){
                switch(score){
                    case 100:
                        System.out.println("信用极好！");
                        return;
                    case 80-99:
                        System.out.println("信用优秀！");
                        break;
                    case 60-80:
                        System.out.println("信用一般！");
                        break;
                    default:
                        System.out.println("信用不合格！");
                        break;

                }
            }else{
                System.out.println("请输入1-100之间的信用分");

            }
        }

    }
}
